

<link rel="stylesheet" href="__CSS__/mall.css"/>

<script src="__STATIC__/js/ace-extra.min.js"></script>
<script src="__STATIC__/js/laydate.js"></script>



<div class="page-header mbx">
    <h1>
        <small>
            {$companyName}分公司管理 ｜收益列表 <i class="ace-icon fa fa-times xx"></i>
        </small>
    </h1>
</div>
<div class="mbx" style="padding-bottom: 200px;">
    <div class="widget-box transparent">
        <div class="nav-tab" style="position: relative">
            <ul class="nav-tab-title ">
                <li class="nav-this">收益列表</li>
            </ul>
        </div>

        <div class="widget-body">
            <div class="widget-main padding-10">
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal s_input-bgcolor" method="post" action="/admin/Income/index">
                            <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label text-right no-padding-right">收益类型： </label>
                                    <div class="col-sm-8">
                                        <select class="form-control" name="status">
                                            <option {if condition="$postArr.status eq '全部' "}selected='selected'{/if}>全部</option>
                                            <option {if condition="$postArr.status eq '商城收益' "}selected='selected'{/if}>商城收益</option>
                                            <option {if condition="$postArr.status eq '藏宝收益' "}selected='selected'{/if}>藏宝收益</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                                <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 ">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label text-right no-padding-right">时间： </label>
                                        <div class="col-sm-8">
                                            <div class="input-daterange input-group">
                                                <input type="text" class="input-sm form-control hm-shop-upgrade" placeholder="开始时间" name="start" id="start" value="{$postArr.start}">
                                                <span class="input-group-addon" style="background: none;border: none;">
																	-
																</span>
                                                <input type="text" class="input-sm form-control hm-shop-upgrade" placeholder="结束时间" name="end" id="end" value="{$postArr.end}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="text-right">
                                    <button class="btn " style="width: 120px;    border-radius: 2rem; background: #fba40a!important;border-color: #fba40a;margin-left: 20px;">查询</button>
                                </div>

                        </form>
                        <div class="space"></div>
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="pad-b20 s_overflow">
                                    <h4 class="col-lg-3 col-md-3 col-sm-3 col-xs-3 no-margin color-gray9">
                                        公司总收入为：<span class="color-red">{$company_moneySum|default='0.00'}</span>元
                                    </h4>
                                    <h4 class="col-lg-3 col-md-3 col-sm-3 col-xs-3 no-margin color-gray9">
                                        商城收入为：<span class="color-red">{$company_shopSum|default='0.00'}</span>元
                                    </h4>
                                    <h4 class="col-lg-3 col-md-3 col-sm-3 col-xs-3 no-margin color-gray9">
                                        藏宝收入为：<span class="color-red">{$company_treasureSum|default='0.00'}</span>元
                                    </h4>
                                </div>
                                <table id="sample-table-1" class="table table-hover">
                                    <thead>
                                    <tr>
                                        <th class="left" style="width:25%">收益类型</th>
                                        <th class="left" style="width:25%">金额（￥）</th>
                                        <th class="left" style="width:25%">时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {empty name="resList"}
                                    <tr class="s_tr-vertical">
                                        <td colspan="8" class="center" style="color: red;">没有查询到结果</td>
                                    </tr>
                                    {/empty}
                                    {volist name="resList" id="vo"}
                                    <tr class="s_tr-vertical">
                                        <td class="left"> {$inComeRes[$vo.source]}</td>
                                        <td class="left">{$vo.money}</td>
                                        <td class="left">{$vo.addtime}</td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!--分页器-->
                <div class="text-center">
                    {$pageShow}
                </div>

            </div>
        </div>
    </div>
</div>


<script type="text/javascript">
    laydate.render({
        elem: '#start' //指定元素
    });
    laydate.render({
        elem: '#end' //指定元素
    });
</script>